package jnpf.model;

import jnpf.model.visiual.TableModel;
import jnpf.model.visiual.fields.FieLdsModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class RecursionForm {
    private List<FieLdsModel> list;
    private List<TableModel> tableModelList;

    public RecursionForm(Builder builder) {
        this.list = builder.list;
        this.tableModelList = builder.tableModelList;
    }

    public static class Builder {
        private List<FieLdsModel> list;
        private List<TableModel> tableModelList;

        public Builder() {
        }

        public Builder list(List<FieLdsModel> list) {
            this.list = list;
            return this;
        }

        public Builder tableModelList(List<TableModel> tableModelList) {
            this.tableModelList = tableModelList;
            return this;
        }

        public RecursionForm build(){
            return new RecursionForm(this);
        }
    }

}
